package base.day04;

public class Main2 {
    public static void main(String[] args) {
        //逻辑运算符
        int a = 10;
        int b = 20;
        int c = 30;
//        System.out.println(a>b && b>c);   false
//        System.out.println(a<b && b>c);   false
//        System.out.println(a>b && b<c);   false
//        System.out.println(a<b && b<c);   true
//        System.out.println("----------------------------------");
//        System.out.println(a>b || b>c);   false
//        System.out.println(a<b || b>c);   true
//        System.out.println(a>b || b<c);   true
//        System.out.println(a<b || b<c);   true
//        System.out.println("-----------------------------------");
//        System.out.println(!(a<b));       false
//        System.out.println(!!(a<b));      true
//        System.out.println(!!!(a<b));     false
//        System.out.println(!!!!(a<b));    true
        //三元运算符输出最大的值
        System.out.println("-------------------------------------");
        int max = a > b ? a : b;
        System.out.println(max);

    }
}
